package com.cloud;

import com.ribbon.config.RibbonRuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication(exclude = {GsonAutoConfiguration.class})
@EnableEurekaClient
//@EnableDiscoveryClient
// @RibbonClient(name = "CLOUD-PAYMENT-SERVICE", configuration = RibbonRuleConfig.class) // 启动该服务时去加载自定义的ribbon配置
public class CloudConsumerRibbonOrder80Application {

    public static void main(String[] args) {
        SpringApplication.run(CloudConsumerRibbonOrder80Application.class, args);
        System.out.println("启动成功");

    }

}
